#ifndef _SERVICEMASTER_H_
#define _SERVICEMASTER_H_

#include "stm32f10x.h"
#include "debug.h"

#define OK     0
#define CRCERR 1

void memset(unsigned char *buff,unsigned char tem ,unsigned int length);
void memcpy(unsigned char *Des,unsigned char *Sour ,unsigned int length);
unsigned char  GetCRC(unsigned char *p);
void UsartSendStr(unsigned char *p);
unsigned char UsartPro(void);
unsigned char DataPro(unsigned char *q);
unsigned char ReportErr(unsigned char *p);
void AckForMaster(unsigned char *p,unsigned char Result);
void AckFor100(unsigned char *p,unsigned char *tem,unsigned char Result);
void AckFor103(unsigned char *p,unsigned char *tem,unsigned char Result);

#endif
